package com.kerbores.wx.token.impl;

import com.kerbores.wx.api.WxJsapiTicketStore;
import com.kerbores.wx.token.WxJsapiTicket;

public class MemoryJsapiTicketStore implements WxJsapiTicketStore {

	WxJsapiTicket jt;

	@Override
	public WxJsapiTicket get() {
		return jt;
	}

	@Override
	public void save(String ticket, int expires,long lastCacheTimeMillis) {
		jt = new WxJsapiTicket(ticket, expires, lastCacheTimeMillis);
	}

}
